const path = require('path')
function resolve (dir) {
  return path.join(__dirname, dir)
}
module.exports = {
  alias: {
    '@': resolve('src')
  },
  open: true,
  proxy: {
    '/api': {
      target: 'http://localhost:354',
      changeOrigin: true,
      rewrite: path => path.replace(/^\/api/, '')
    }
  }
}
